<?php
class article extends access{
	
	public function __construct(){
		parent::__construct();
	}
	public function index(){
		echo 'this is article/index';
	}
	public function add(){
		echo 'this is article/add';

		print_r($_GET);
		
		// $insert_id=$this->db->insert("insert into article (title,content) values (:title,:content)",['title'=>'你好','content'=>'我是内容']);

		// var_dump($insert_id);

		$data=$this->db->select("select * from article");
		print_r($data);

		$data=$this->db->column("select title from article");

		print_r($data);

		$data=$this->db->value("select content from article where itemid=1");

		print_r($data);
		
		include view();
	}
	protected function _demo(){
		
	}
}